package com.yml.mall.category.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;
@Data
@EqualsAndHashCode
@NoArgsConstructor
@ApiModel(value = "类目对象",description = "")
public class CategoryDO {
    @ApiModelProperty(value = "ID")
    private Integer id;
    @ApiModelProperty(value = "父类ID")
    private Integer parentId;
    @ApiModelProperty(value = "类目名字")
    private String name;
    @ApiModelProperty(value = "状态")
    private Boolean status;
    @ApiModelProperty(value = "排序")
    private Integer sortOrder;
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    public CategoryDO(Integer parentId, String name) {
        this.parentId = parentId;
        this.name = name;
    }
}